package com.tryee.wx.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tryee.common.base.BaseEntity;
import java.util.Date;

/**
 * 消息管理
表 wx_user_msg
 * 
 * @author tryee
 * @date 2019-04-03
 */
public class UserMsg extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 开发者微信号 */
	private String toUserName;
	/** 发送方帐号（一个OpenID） */
	private String fromUserName;
	/** 消息创建时间 （整型） */
	private Date createTime;
	/** 消息类型，文本为text */
	private String msgType;
	/** 回复的消息内容（换行：在content中能够换行，微信客户端就支持换行显示） */
	private String content;
	/** 消息id，64位整型 */
	private String msgId;
	/** 图片链接（由系统生成） */
	private String picUrl;
	/** 图片消息媒体id，可以调用获取临时素材接口拉取数据。 */
	private String mediaId;
	/** 语音格式，如amr，speex等 */
	private String format;
	/** 视频消息缩略图的媒体id，可以调用多媒体文件下载接口拉取数据。 */
	private String thumbMediaid;
	/** 地理位置维度 */
	private String locationX;
	/** 地理位置经度 */
	private String locationY;
	/** 地图缩放大小 */
	private String scale;
	/** 地理位置信息 */
	private String label;
	/** 消息标题 */
	private String title;
	/** 消息描述 */
	private String description;
	/** 消息链接 */
	private String url;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setToUserName(String toUserName) 
	{
		this.toUserName = toUserName;
	}

	public String getToUserName() 
	{
		return toUserName;
	}
	public void setFromUserName(String fromUserName) 
	{
		this.fromUserName = fromUserName;
	}

	public String getFromUserName() 
	{
		return fromUserName;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setMsgType(String msgType) 
	{
		this.msgType = msgType;
	}

	public String getMsgType() 
	{
		return msgType;
	}
	public void setContent(String content) 
	{
		this.content = content;
	}

	public String getContent() 
	{
		return content;
	}
	public void setMsgId(String msgId) 
	{
		this.msgId = msgId;
	}

	public String getMsgId() 
	{
		return msgId;
	}
	public void setPicUrl(String picUrl) 
	{
		this.picUrl = picUrl;
	}

	public String getPicUrl() 
	{
		return picUrl;
	}
	public void setMediaId(String mediaId) 
	{
		this.mediaId = mediaId;
	}

	public String getMediaId() 
	{
		return mediaId;
	}
	public void setFormat(String format) 
	{
		this.format = format;
	}

	public String getFormat() 
	{
		return format;
	}
	public void setThumbMediaid(String thumbMediaid) 
	{
		this.thumbMediaid = thumbMediaid;
	}

	public String getThumbMediaid() 
	{
		return thumbMediaid;
	}
	public void setLocationX(String locationX) 
	{
		this.locationX = locationX;
	}

	public String getLocationX() 
	{
		return locationX;
	}
	public void setLocationY(String locationY) 
	{
		this.locationY = locationY;
	}

	public String getLocationY() 
	{
		return locationY;
	}
	public void setScale(String scale) 
	{
		this.scale = scale;
	}

	public String getScale() 
	{
		return scale;
	}
	public void setLabel(String label) 
	{
		this.label = label;
	}

	public String getLabel() 
	{
		return label;
	}
	public void setTitle(String title) 
	{
		this.title = title;
	}

	public String getTitle() 
	{
		return title;
	}
	public void setDescription(String description) 
	{
		this.description = description;
	}

	public String getDescription() 
	{
		return description;
	}
	public void setUrl(String url) 
	{
		this.url = url;
	}

	public String getUrl() 
	{
		return url;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("toUserName", getToUserName())
            .append("fromUserName", getFromUserName())
            .append("createTime", getCreateTime())
            .append("msgType", getMsgType())
            .append("content", getContent())
            .append("msgId", getMsgId())
            .append("picUrl", getPicUrl())
            .append("mediaId", getMediaId())
            .append("format", getFormat())
            .append("thumbMediaid", getThumbMediaid())
            .append("locationX", getLocationX())
            .append("locationY", getLocationY())
            .append("scale", getScale())
            .append("label", getLabel())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("url", getUrl())
            .toString();
    }
}
